package com.hua.struct;

public class SwitchDemo02 {
    //Switch支持String类型了
    public static void main(String[] args) {

        String name = "lihua";


        switch (name){
            case "wd":
                System.out.println("wd");
                break;
            case "lihua":
                System.out.println("lihua");
                break;
            default:
                System.out.println("no！");
        }

    }



}
